<template>

</template>

<script setup>
	import {
		onLaunch
	} from '@dcloudio/uni-app';
	import {
		useUserStore
	} from './store/user';
import { useContractStore } from './store/contract';

	const userStore = useUserStore();
const contractStore = useContractStore();
	onLaunch(() => {
		const token = uni.getStorageSync('user_token');
		if (token) {
			// 小程序初始化时，发请求获取用户信息
			userStore.getUserInfoAction();
		}
		contractStore.initTestData();
	})
</script>

<style lang="scss">
/* 注意要写在第一行，注意不能引入至uni.scss，同时给style标签加入lang="scss"属性 */
@import "@/uni_modules/uview-plus/index.scss";

/*每个页面公共css */
</style>